package com.nhim.cms.admin.shared;

import java.util.List;

import com.google.gwt.requestfactory.shared.Request;
import com.google.gwt.requestfactory.shared.RequestContext;
import com.google.gwt.requestfactory.shared.Service;
import com.nhim.cms.admin.server.SpringServiceLocator;


@Service(locator = SpringServiceLocator.class, value =
	com.nhim.cms.admin.server.ElementDefinitionService.class)
public interface ElementDefinitionRequest extends RequestContext {

	  Request<Integer> countElementDefinitionsBySearch(String startsWith);
	  
	  Request<List<ElementDefinitionProxy>> findElementDefinitionEntriesBySearch( String startsWith, String orderBy);
	  
	  Request<ElementDefinitionProxy>  persit(ElementDefinitionProxy proxy);
	  
	  Request<ElementDefinitionProxy> findById(Integer id);
	  
	  Request<Boolean> isNameExist(String name);
	  
	  Request<Boolean> remove(Integer id);


}
